# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)

# 项目信息
project(main C)

# 查找当前目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
aux_source_directory(${PROJECT_SOURCE_DIR} DIR_SRCS)
aux_source_directory(${PROJECT_SOURCE_DIR}/log DIR_SRCS)
aux_source_directory(${PROJECT_SOURCE_DIR}/test DIR_SRCS)
aux_source_directory(${PROJECT_SOURCE_DIR}/cutest-1.5 DIR_SRCS)

# 添加头文件路径
include_directories("${PROJECT_SOURCE_DIR}/log")
include_directories("${PROJECT_SOURCE_DIR}/test")
include_directories("${PROJECT_SOURCE_DIR}/cutest-1.5")

# 添加子目录
add_subdirectory(log)
add_subdirectory(test)
add_subdirectory(cutest-1.5)

# 指定生成目标
add_executable(main ${DIR_SRCS})
